﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Guestbook
{
    public partial class GuestbookMain : Form
    {
        public GuestbookMain()
        {
            InitializeComponent();
        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void btnOpenGuestbook_Click(object sender, EventArgs e)
        {
            var form = new GuestbookForm();
            form.WindowState = FormWindowState.Maximized;
            form.ShowDialog(this);
        }

        private void viewGuestsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var view = new ViewGuests();

            view.ShowDialog(this);
        }

        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var about = new AboutBox();
            about.ShowDialog(this);
        }
    }
}
